package net.adetech.dcweb.core.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import net.adetech.utils.spring.IEntity;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author auto
 */
public class CommonCode implements IEntity {
    @JSONField(name = "addDate", format = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date addDate;
    //代码定义
    private String codeRemark;
    private String updateInfo;
    private String updateIp;
    private String uuid;
    //代码名称
    private String codeName;
    @JSONField(name = "updateDate", format = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateDate;
    private Boolean isDelete;
    private String addIp;
    private String updateUser;
    //代码定义，如果值类型直接存储值，如果是键值对则存储json 格式为[{key:1,value:'领导'}]
    private String codeDefinition;
    private Long id;
    private String addInfo;
    private String addUser;
    //代码类型:1.值,2键值对
    private String codeType;

    public java.util.Date getAddDate() {
        return addDate;
    }

    public void setAddDate(java.util.Date addDate) {
        this.addDate = addDate;
    }

    public String getCodeRemark() {
        return codeRemark;
    }

    public void setCodeRemark(String codeRemark) {
        this.codeRemark = codeRemark;
    }

    public String getUpdateInfo() {
        return updateInfo;
    }

    public void setUpdateInfo(String updateInfo) {
        this.updateInfo = updateInfo;
    }

    public String getUpdateIp() {
        return updateIp;
    }

    public void setUpdateIp(String updateIp) {
        this.updateIp = updateIp;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public java.util.Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(java.util.Date updateDate) {
        this.updateDate = updateDate;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public String getAddIp() {
        return addIp;
    }

    public void setAddIp(String addIp) {
        this.addIp = addIp;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getCodeDefinition() {
        return codeDefinition;
    }

    public void setCodeDefinition(String codeDefinition) {
        this.codeDefinition = codeDefinition;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAddInfo() {
        return addInfo;
    }

    public void setAddInfo(String addInfo) {
        this.addInfo = addInfo;
    }

    public String getAddUser() {
        return addUser;
    }

    public void setAddUser(String addUser) {
        this.addUser = addUser;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }
}                                                                                                                                                                